package cn.tedu.egmybatis7.mapper;

import cn.tedu.egmybatis7.pojo.entity.Product;
import cn.tedu.egmybatis7.pojo.vo.ProductVO1;
import cn.tedu.egmybatis7.pojo.vo.ProductVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
   int insertProduct(Product product);
   ProductVO1 selectOneProduct(Integer id);
   List<ProductVO2> selectAllProduct();
   int deleteById(Integer id);
   int updateById(Product product);
   int deleteByIds(List<Integer> ids);
   int dynamicUpdate(Product product);
   int countProduct();

}
